﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


public partial class Addon {

}
/*
public class AddonCollection : List<Addon> {
    public Addon GetByNameLink(string nameLink) {
        foreach (Addon addon in this) {
            if (addon.NameLink == nameLink) {
                return addon;
            }
        }
        return null;
    }

    public int CheckedAddonCount {
        get {
            int result = 0;
            foreach (Addon addon in this) {
                if (addon.Checked) {
                    result++;
                }
            }
            return result;
        }
    }

    public int TocsCount {
        get {
            int result = 0;
            foreach (Addon addon in this) {
                result += addon.Tocs.Count;
            }
            return result;
        }
    }



    public Addon GetByIndex(int index) {
        foreach (Addon addon in this) {
            if (addon.Index == index) {
                return addon;
            }
        }
        return null;
    }


    public Addon GetByFileName(string filename) {
        foreach (Addon addon in this) {
            if (addon.FileName == filename) {
                return addon;
            }
        }
        return null;
    }


}
*/

